package POJO;

import java.io.Serializable;
import java.util.Date;

public class Books implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private String name;
	private Date pubDate;
	private String autor;
	private double price;
	private boolean isNew;
	private String publisher;
	
	public Books() {
		super();
	}
	
	public Books(Integer id, String name, Date pubDate, String autor, double price, boolean isNew, String publisher) {
		super();
		this.id = id;
		this.name = name;
		this.pubDate = pubDate;
		this.autor = autor;
		this.price = price;
		this.isNew = isNew;
		this.publisher = publisher;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getPubDate() {
		return pubDate;
	}
	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}
	public String getAutor() {
		return autor;
	}
	public void setAutor(String autor) {
		this.autor = autor;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public boolean isNew() {
		return isNew;
	}
	public void setNew(boolean isNew) {
		this.isNew = isNew;
	}
	public String getPublisher() {
		return publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "Books [id=" + id + ", name=" + name + ", pubDate=" + pubDate + ", autor=" + autor + ", price=" + price
				+ ", isNew=" + isNew + ", publisher=" + publisher + "]";
	}
	
	
	
}
